package com.fand.user.po;

import java.util.Date;

import javax.persistence.Id;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 用户
 * 
 * @author haitao.yao
 * 
 */
public class User implements java.io.Serializable {
	/**
	 * 版本号
	 */
	private static final long serialVersionUID = 203371842687394875L;

	/**
	 * 开始时间
	 */
	private Date beginDaTi;

	/**
	 * 编号
	 */
	private String code;

	/**
	 * 一级部门标识
	 */
	private String department1Id;

	/**
	 * 二级部门标识
	 */
	private String department2Id;

	/**
	 * 三级部门标识
	 */
	private String department3Id;

	/**
	 * 四级部门标识
	 */
	private String department4Id;

	/**
	 * 五级部门标识
	 */
	private String department5Id;

	/**
	 * 六级部门标识
	 */
	private String department6Id;

	/**
	 * 部门标识
	 */
	private String departmentId;

	/**
	 * 邮箱
	 */
	private String email;

	/**
	 * 结束时间
	 */
	private Date endDaTi;

	/**
	 * 标识
	 */
	@Id
	private String id;

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 性别
	 */
	private String sexCo;

	/**
	 * 获取
	 * 
	 * @return 开始时间
	 */
	public Date getBeginDaTi() {
		return this.beginDaTi;
	}

	/**
	 * 获取
	 * 
	 * @return 编号
	 */
	public String getCode() {
		return this.code;
	}

	/**
	 * 获取
	 * 
	 * @return 一级部门标识
	 */
	public String getDepartment1Id() {
		return this.department1Id;
	}

	/**
	 * 获取
	 * 
	 * @return 二级部门标识
	 */
	public String getDepartment2Id() {
		return this.department2Id;
	}

	/**
	 * 获取
	 * 
	 * @return 三级部门标识
	 */
	public String getDepartment3Id() {
		return this.department3Id;
	}

	/**
	 * 获取
	 * 
	 * @return 四级部门标识
	 */
	public String getDepartment4Id() {
		return this.department4Id;
	}

	/**
	 * 获取
	 * 
	 * @return 五级部门标识
	 */
	public String getDepartment5Id() {
		return this.department5Id;
	}

	/**
	 * 获取
	 * 
	 * @return 六级部门标识
	 */
	public String getDepartment6Id() {
		return this.department6Id;
	}

	/**
	 * 获取
	 * 
	 * @return 部门标识
	 */
	public String getDepartmentId() {
		return this.departmentId;
	}

	/**
	 * 获取
	 * 
	 * @return 邮箱
	 */
	public String getEmail() {
		return this.email;
	}

	/**
	 * 获取
	 * 
	 * @return 结束时间
	 */
	public Date getEndDaTi() {
		return this.endDaTi;
	}

	/**
	 * 获取
	 * 
	 * @return 标识
	 */
	public String getId() {
		return this.id;
	}

	/**
	 * 获取
	 * 
	 * @return 名称
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * 获取
	 * 
	 * @return 性别
	 */
	public String getSexCo() {
		return this.sexCo;
	}

	/**
	 * 设置
	 * 
	 * @param beginDaTi
	 *            开始时间
	 * @return 用户
	 */
	public User setBeginDaTi(final Date beginDaTi) {
		this.beginDaTi = beginDaTi;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param code
	 *            编号
	 * @return 用户
	 */
	public User setCode(final String code) {
		this.code = code;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param department1Id
	 *            一级部门标识
	 * @return 用户
	 */
	public User setDepartment1Id(final String department1Id) {
		this.department1Id = department1Id;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param department2Id
	 *            二级部门标识
	 * @return 用户
	 */
	public User setDepartment2Id(final String department2Id) {
		this.department2Id = department2Id;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param department3Id
	 *            三级部门标识
	 * @return 用户
	 */
	public User setDepartment3Id(final String department3Id) {
		this.department3Id = department3Id;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param department4Id
	 *            四级部门标识
	 * @return 用户
	 */
	public User setDepartment4Id(final String department4Id) {
		this.department4Id = department4Id;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param department5Id
	 *            五级部门标识
	 * @return 用户
	 */
	public User setDepartment5Id(final String department5Id) {
		this.department5Id = department5Id;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param department6Id
	 *            六级部门标识
	 * @return 用户
	 */
	public User setDepartment6Id(final String department6Id) {
		this.department6Id = department6Id;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param departmentId
	 *            部门标识
	 * @return 用户
	 */
	public User setDepartmentId(final String departmentId) {
		this.departmentId = departmentId;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param email
	 *            邮箱
	 * @return 用户
	 */
	public User setEmail(final String email) {
		this.email = email;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param endDaTi
	 *            结束时间
	 * @return 用户
	 */
	public User setEndDaTi(final Date endDaTi) {
		this.endDaTi = endDaTi;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param id
	 *            标识
	 * @return 用户
	 */
	public User setId(final String id) {
		this.id = id;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param name
	 *            名称
	 * @return 用户
	 */
	public User setName(final String name) {
		this.name = name;

		return this;
	}

	/**
	 * 设置
	 * 
	 * @param sexCo
	 *            性别
	 * @return 用户
	 */
	public User setSexCo(final String sexCo) {
		this.sexCo = sexCo;

		return this;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}